{% extends '../../layout/empty.njk' %}

{% block main %}
<div id="chapterBox"></div>
{% endblock %}

{% block footer %}
{% endblock %}

{% block pageData %}
<script>
    var user = {{ user | dump | safe }};
    var isHandbook = {{ isHandbook }};
    var book = {{ book | dump | safe }};
    var chapterID = {{ chapterID }};
    var chapters = {{ chapters | dump | safe }};
    var isCommitedStar = {{ isCommitedStar }};
</script>
{% endblock %}

{% block libcss %}
    {{ super() }}
    <link rel="stylesheet" href="{{cssPath}}/libs/highlight.codestyle.css" type="text/css">
{% endblock %}

{% block libjs %}
    {{ super() }}
    <script src="{{jsPath}}/libs/highlight.min.js" type="text/javascript"></script>
    <script>hljs.initHighlightingOnLoad();</script>
{% endblock %}

{% block devjs %}
    {{ loadjs('entry/book/chapter.js') }}
{% endblock %}